% TEST_ID: LANG-EXPAND-0090
% CATEGORY: stdlib/arithmetic_ops/triangle
% 测试 三角函数

function test_cot_cosh_acosh_acot()

assert(cot(0) == inf)
assert(abs(cot(7) - 1.147515422405136) < 1e-12)
assert(abs(real(cot(2+2i)) + 0.027065511732555) < 1e-12 && abs(imag(cot(2+2i)) + 0.975968735117310) < 1e-12)

assert(abs(acosh(7) - 2.633915793849634) < 1e-12)
assert(abs(real(acosh(2+2i)) - 1.734324521487967) < 1e-12 && abs(imag(acosh(2+2i)) - 0.816547182096851) < 1e-12)
assert(abs(real(acosh(0))) < 1e-12 && abs(imag(acosh(0)) - 1.570796326794897) < 1e-12)

assert(abs(cosh(7) - 5.483170351552120e+02) < 1e-10)
assert(abs(real(cosh(2+2i)) + 1.565625835315744) < 1e-12 && abs(imag(cosh(2+2i)) - 3.297894836311237) < 1e-12)

assert(abs(acot(0) - 1.570796326794897) < 1e-12)
assert(abs(real(acot(2+2i)) - 0.259573057123261) < 1e-12 && abs(imag(acot(2+2i)) + 0.238877861256859) < 1e-12)